home *** CD-ROM | disk | FTP | other *** search
- > But ANSI C and PCC share syntax for _defining_ functions.
- > The preprocessor dancing is necessary for _declaring_ functions
- > like so:
- >
- > int foo __ARGS__((int x, int y, int z));
- >
- > but in the .c files, you can just do the usual
- >
- > int foo(x,y,z)
- > int x;
- > int y;
- > int z;
-
- True, but in the latter case you don't get any type checking of the
- parameters in functions that happen NOT to be declared before their
- definition. I agree that the syntax with extra commas is ugly, though,
- but there was no better way.
-
- JF
-
-